import QtQuick 2.0

TextBase {
    id: t
    color: "red"

    property real sy: 0

    function up()
    {
        anim.restart()
    }

    ParallelAnimation{
        id: anim
        PropertyAnimation{target: t; property: "y"; to: sy - 20; duration: 500; }
        PropertyAnimation{target: t; property: "opacity"; to: 0.3; duration: 500; }
        onStopped: {
            t.visible = false
            t.destroy()
        }
    }
}
